package ru.study.thinkin.chapter10;

public class Parcel11 {
	private static  class PContents implements Contents {
		private int  i = 11;
		public int value() {			
			return i;
		}		
	}
	protected static class ParcelDestination implements Destination {
		private String label;
		public static void f() {}
		static int x = 10;
		
		static class AnotherLevel {
			public static void f() {}
			static int x=10;
		}
		
		private ParcelDestination(String whereTo) {
			label = whereTo;			
		}
		public String readLabel() {
			return label;
		}
	}
	public static Destination destination(String s) {
		return new ParcelDestination(s);
	}
	
	public static Contents cont() {
		return new PContents();
	}
	
	
	public static void main(String[] args) {
		Contents c  = cont();
		Destination d = destination("Nair");

	}

}
